package com.zhoujing.springsecurity.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhoujing.springsecurity.mapper.SysRoleMapper;
import com.zhoujing.springsecurity.pojo.SysRoleMenu;
import com.zhoujing.springsecurity.service.SysRoleMenuService;
import com.zhoujing.springsecurity.mapper.SysRoleMenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author FanGccU
* @description 针对表【sys_role_menu】的数据库操作Service实现
* @createDate 2022-03-08 15:27:20
*/
@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu>
    implements SysRoleMenuService{

    @Autowired
    private SysRoleMenuMapper roleMenuMapper;

    @Override
    public List<String> getPermsByUser(Long usrId) {
        return roleMenuMapper.getPermsByUser(usrId);
    }
}




